DevForce Help Reference
CreateServiceHost(Type,Uri[]) Method


Specifies the type of service to host.
The System.Array of type System.Uri that contains the base addresses for the service hosted.
Creates a System.ServiceModel.ServiceHost for a specified type of service with a specific base address.
Syntax
'Declaration
 
Protected Overloads Overrides Function CreateServiceHost( _
   ByVal serviceType As Type, _
   ByVal baseAddresses() As Uri _
) As ServiceHost
'Usage
 
Dim instance As EntityServiceHostFactory
Dim serviceType As Type
Dim baseAddresses() As Uri
Dim value As ServiceHost
 
value = instance.CreateServiceHost(serviceType, baseAddresses)
protected override ServiceHost CreateServiceHost( 
   Type serviceType,
   Uri[] baseAddresses
)

Parameters

serviceType
Specifies the type of service to host.
baseAddresses
The System.Array of type System.Uri that contains the base addresses for the service hosted.

Return Value

A System.ServiceModel.ServiceHost for the type of service specified with a specific base address.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityServiceHostFactory Class
EntityServiceHostFactory Members
Overload List

Send Feedback